﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using Happy.CodeRule;
using Happy.CodeRule.Generators;
using Happy.Examples.OrderManagement.Domain.Orders;

namespace Happy.Examples.OrderManagement.Domain.ServiceImplementions.Orders
{
    internal sealed class OrderCodeGenerator : IOrderCodeGenerator
    {
        public string NextOrderCode()
        {
            var generator = new SeedCodeGenerator(new FileSeedStore(), "OrderCode", 10);

            return generator.Generate(new GenerateContext());
        }
    }
}
